package com.cat.decorator;

/**
 * @author cat
 * @version 2025/5/21 17:03
 * @description 装饰者类(抽象装饰角色)
 * @since JDK17
 */

public abstract class Garnish extends FastFood{
    // 声明快餐类对象
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
